import request from '@/utils/request'

export function add(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/add",
    method: "post",
    data:data,
  });
}

export function edit(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/edit",
    method: "put",
    data:data,
  });
}

export function listByPage(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/listByPage",
    method: "post",
    params:{
      pageNum:data.page,
      pageSize:10,
    },
    data:data,
  });
}


export function queryById(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/queryById",
    method: "get",
    params:data,
  });
}

export function toExamine(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/toExamine",
    method: "put",
    data:data,
  });
}

export function updateHeadById(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/updateHeadById",
    method: "put",
    data:data,
  });
}


export function updateStateById(id) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/updateStateById/"+id,
    method: "put",
    data:id,
  });
}





